# -*- coding: utf-8 -*-
# @Time    : 2020/9/8 23:21
# @Author  : liupengfei
# @File    : urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import CircleViewSet, HouseListView, CircleListView, CircleDetailView, CircleCommentViewSet, CircleCommentListView

urlpatterns = [
    path('list/', CircleListView.as_view()),  #
    path('<int:pk>/detail/', CircleDetailView.as_view()),  #
    path('comment/list/', CircleCommentListView.as_view()),  #
    path('houses/', HouseListView.as_view()),  #
]

router = SimpleRouter()
router.register('comment', CircleCommentViewSet)  # 圈子
router.register('', CircleViewSet)  # 圈子
urlpatterns += router.urls
